home *** CD-ROM | disk | FTP | other *** search
/ SPACE 1 / SPACE - Library 1 - Volume 1.iso / program / 16 / memory.map < prev    next >
Text File  |  1985-11-19  |  1KB  |  50 lines

  1.         Forthmacs Memory Map
  2.  
  3. Addresses shown are approximate and were found on a 512K 520ST
  4. with TOS in ROM, and no desk accessories loaded.  All addresses are
  5. in hex.
  6.  
  7.  
  8. Top of Memory
  9.  
  10.  
  11.     Used by TOS
  12.  
  13.                   ( 78000 ) ( for a 512K system )
  14.  
  15.  
  16.     Memory available for Emacs and other TOS programs executed by EXEC
  17.  
  18. memtop @          ( 60000 ) ( does not depend on the memory size )
  19.  
  20.     Forth stacks and terminal input buffer
  21.  
  22. sp0 @ ps-size -   ( 5fce0 )
  23.  
  24.     Memory allocated by alloc-mem; used for file buffers, etc
  25.  
  26. next-free-mem @      ( 5c350 )
  27.  
  28.     Memory available for allocation with alloc-mem (grows down)
  29.  
  30.  
  31.     Memory available for expanding the dictionary (grows up)
  32.  
  33. here              ( 21ab4 )
  34.  
  35.     Forth dictionary
  36.  
  37. origin            ( 0ecce )
  38.  
  39.     Base page
  40.  
  41. base-page         ( 0ebce ) ( this address depends on a lot of things )
  42.  
  43.     Used by TOS
  44.  
  45. Bottom of Memory
  46. orth
  47.  
  48. up@ link !  \ point the current task to itself
  49.  
  50. : local (s task-base user-var-addr -- user-var-addr-in-tasks-sp